<?php
namespace app\api\controller\deerhome\user;

use app\api\controller\deerhome\user\Base;
use think\Db;
use think\Validate;
use app\admin\model\deerhome\SmsLog as SmsLogModel;
/**
 * 短信
 */
class Sms extends Base
{
    public function send()
    {
        $tel=$this->request->param("mobile",'','trim');
        try{
            (new SmsLogModel)->sendYzm($tel);
        }catch(\Exception $e){
            $this->err($e->getMessage());
        }
        $this->ok();
    }
   
}
